package com.guan.core.entity;

import com.alibaba.fastjson.JSON;

/**
 * 返回的内容实体
 * Created by Administrator on 2018/1/16 0016.
 */
public class ReturnContent {
    /**
     * 请求转发或者重定向的url
     */
    private String url;

    /**

     * 需要返回的json对象
     */
    private Object obj;
    public ReturnContent(String url) {
        this.url = url;
    }

    public ReturnContent(Object obj) {
        this.obj = obj;
    }

    public String getUrl() {
        return url;
    }

    public Object getObj() {
        return obj;
    }

    public String getJSON(){
        return JSON.toJSONString(obj);
    }
}
